package ylg.cn.com.shenshen.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import ylg.cn.com.shenshen.R;
import ylg.cn.com.shenshen.web.WebViewActivity;

/**
 * Created by Administrator on 2017/11/27.
 */

public class MineFragment extends Fragment implements View.OnClickListener{
    private TextView way1;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_home,container,false);

        return view;
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        way1 = (TextView) view.findViewById(R.id.way1);
        way1.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.way1 :
                Intent intent = new Intent(getContext(),WebViewActivity.class);
                startActivity(intent);
                break;
        }
    }
}
